home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / makefile.djg < prev    next >
Encoding:
Makefile  |  1993-12-30  |  3.0 KB  |  135 lines

  1. #
  2. # This make file is the main make file of the IRIT solid modeller and its
  3. # auxilary tools. Uses DJGCC gcc port form 386 machines.
  4. #
  5. # Do the following before run make:
  6. #
  7. # 1. Edit 'makeflag.djg' for the exact path names to ne used for libraries and
  8. #    binaries. Also set the C compiler and linker flags.
  9. # 2. You will have to build libgif.a from the giflibxx.zip file (see readme.1st
  10. #    for ftp location). Otherwise you would not be able to build poly3d-r.
  11. #
  12. # Only large model is created here.
  13. #
  14. #                Gershon Elber, Nov. 1991
  15. #
  16.  
  17. # Works only on TC++ 1.0 make and up - swap out make before invoking command.
  18. .SWAP
  19.  
  20. # Includes generic definitions.
  21. !include "makeflag.djg"
  22.  
  23. all:    misc_lib cagd_lib prsr_lib geom_lib \
  24.     grapdrvs irit poly3d-h poly3d-r illustrt iritfltr docs
  25.     type &&!
  26. Before executing the test suite and/or any usage of this package
  27. you will have to issue the following commands:
  28.  
  29. set IRIT_PATH=$(BIN_DIR)/
  30. set path = %path%;$(BIN_DIR)
  31.  
  32. or similar.
  33. !
  34.  
  35. #
  36. # Uncommend the following variable to only see the actions taken.
  37. #
  38. # VIEW_ONLY = -n
  39.  
  40. poly3d-h:
  41.     cd poly3d-h
  42.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  43.     cd ..
  44.  
  45. poly3d-r:
  46.     cd poly3d-r
  47.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  48.     cd ..
  49.  
  50. illustrt:
  51.     cd illustrt
  52.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  53.     cd ..
  54.  
  55. misc_lib:
  56.     cd misc_lib
  57.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  58.     cd ..
  59.  
  60. cagd_lib:
  61.     cd cagd_lib
  62.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  63.     cd ..
  64.  
  65. prsr_lib:
  66.     cd prsr_lib
  67.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  68.     cd ..
  69.  
  70. geom_lib:
  71.     cd geom_lib
  72.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  73.     cd ..
  74.  
  75. grapdrvs:
  76.     cd grapdrvs
  77.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  78.     cd ..
  79.  
  80. irit:
  81.     cd irit
  82.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  83.     cd ..\docs
  84.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  85.     cd ..
  86.  
  87. iritfltr:
  88.     cd iritfltr
  89.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  90.     cd ..
  91.  
  92.  
  93. clean:
  94.     -rm poly3d-h\*.map poly3d-h\*.bak poly3d-h\*.old poly3d-h\*.hdn poly3d-h\*.sym
  95.     -rm poly3d-r\*.map poly3d-r\*.bak poly3d-r\*.old poly3d-r\*.gif poly3d-r\*.sym
  96.     -rm illustrt\*.map illustrt\*.bak illustrt\*.old illustrt\*.gif illustrt\*.sym
  97.     -rm iritfltr\*.map iritfltr\*.bak iritfltr\*.old iritfltr\*.sym
  98.     -rm prsr_lib\*.map prsr_lib\*.bak prsr_lib\*.sym
  99.     -rm geom_lib\*.map geom_lib\*.bak geom_lib\*.sym
  100.     -rm cagd_lib\*.map cagd_lib\*.bak cagd_lib\*.sym
  101.     -rm grapdrvs\*.map grapdrvs\*.bak grapdrvs\*.sym
  102.     -rm misc_lib\*.map misc_lib\*.bak misc_lib\*.sym
  103.     -rm irit\*.map irit\*.bak irit\*.old irit\*.sym irit\*.dat
  104.     -rm docs\irithlp.exe
  105.  
  106. cleanobj:
  107.     -rm poly3d-h\*.o poly3d-r\*.o illustrt\*.o irit\*.o
  108.     -rm iritfltr\*.o cagd_lib\*.o misc_lib\*.o
  109.     -rm prsr_lib\*.o geom_lib\*.o grapdrvs\*.o docs\*.o
  110.     -rm docs\irithlp.exe
  111.  
  112. #
  113. # Make hardcopy documentation.
  114. #
  115. docs:
  116.     cd docs
  117.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg irit.tex irit.doc
  118.     cd ..
  119.  
  120. #
  121. # Test some of the above programs. Make sure $(BIN_DIR) is in your path
  122. #
  123. test:
  124.     cd irit
  125.     -irit demo
  126.     cd ..\poly3d-h
  127.     -test-dos
  128.     cd ..\poly3d-r
  129.     -test-dos
  130.     cd ..\illustrt
  131.     -test-dos
  132.     cd ..\iritfltr
  133.     -test-dos
  134.     cd ..
  135.